﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Design;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design.Configuration.Design.HostAdapterV5;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel;
using Microsoft.Practices.EnterpriseLibrary.Configuration.Design.ViewModel.Commands;

namespace EntLibContrib.Query.Configuration.Design.ViewModel
{
#pragma warning disable 1591
	/// <summary>
	/// This class supports block-specific configuration design-time and is not
	/// intended to be used directly from your code.
	/// </summary>
	public class AddQueryBlockCommand : AddApplicationBlockCommand
	{
		public AddQueryBlockCommand(ConfigurationSourceModel configurationSourceModel, AddApplicationBlockCommandAttribute attribute, IUIServiceWpf uiService)
			: base(configurationSourceModel, attribute, uiService)
		{
		}

		protected override System.Configuration.ConfigurationSection CreateConfigurationSection()
		{
			return new QuerySettings
			{
                ParameterSets = 
                {
                    new ParameterSetData()
                        {
                            Name = "Parameter Set"
                        }
                }
            
			};
		}
	}
#pragma warning restore 1591
}
